package dto;

public class AccountDTO {
	
	private int _id;
	private String _email;
	private String _password;
	private String _firstname;
	private String _lastname;
	private boolean _isAdministrator;
	
	public AccountDTO() {
		this._id = 0;
		this._email = "";
		this._password = "";
		this._firstname = "";
		this._lastname = "";
		this._isAdministrator = false;
	}
	
	public AccountDTO(int id, String email, String password, String firstname, String lastname, boolean isAdministrator) {
		this._id = id;
		this._email = email;
		this._password = password;
		this._firstname = firstname;
		this._lastname = lastname;
		this._isAdministrator = isAdministrator;
	}
	
	public AccountDTO(AccountDTO accountDTO) {
		this._id = accountDTO._id;
		this._email = accountDTO._email;
		this._password = accountDTO._password;
		this._firstname = accountDTO._firstname;
		this._lastname = accountDTO._lastname;
		this._isAdministrator = accountDTO._isAdministrator;
	}
	
	public void update(AccountDTO accountDTO) {
		this._email = accountDTO._email;
		this._password = accountDTO._password;
		this._firstname = accountDTO._firstname;
		this._lastname = accountDTO._lastname;
		this._isAdministrator = accountDTO._isAdministrator;
	}

	public void setID(int id) {
		this._id = id;
	}
	public void setEmail(String email) {
		this._email = email;
	}
	public void setPassword(String password) {
		this._password = password;
	}
	public void setFirstname(String firstname) {
		this._firstname = firstname;
	}
	public void setLastname(String lastname) {
		this._lastname = lastname;
	}
	public void setIsAdministator(boolean value) {
		this._isAdministrator = value;
	}
	
	public int getID() {
		return this._id;
	}
	public String getEmail() {
		return this._email;
	}
	public String getPassword() {
		return this._password;
	}
	public String getFirstname() {
		return this._firstname;
	}
	public String getLastname() {
		return this._lastname;
	}
	public boolean getIsAdministrator() {
		return this._isAdministrator;
	}
}
